class TeamTagLib {

    def myteamService

    static namespace = "team"

    def inMyTeam = {attrs, body ->
        
        if (myteamService.inMyTeam(attrs.personId)) {
			out << body()
		}
    }

    def myteamName = {attrs, body ->
        def team = myteamService.getMyteam()
        out << team?team:message(code:'myteam.noteam','default':'No Team')

    }

}
